package com.hanggold.captcha.font.impl;

import com.hanggold.captcha.font.FontStreamService;

import java.io.InputStream;

/**
 * 字体流.
 * 
 * @author <a href="mailto:free@hanggold.com">free</a>
 * @date 2023-05-22 14:55
 * @since 1.0.0
 **/
public class ChineseSongFontStreamService implements FontStreamService {
    
    private static final String DEFAULT_FILE_PATH = "META-INF/soul/family/STZHONGS.TTF";
    
    @Override
    public final InputStream read() {
        return Thread.currentThread().getContextClassLoader().getResourceAsStream(DEFAULT_FILE_PATH);
    }
}
